package org.nokatag.system;

import java.text.SimpleDateFormat;
import java.util.Date;
/**
 * @function bug 输出类
 * @author rebin
 * @create 2009-07-027
 * @email  xiefangjian@163.com
 */
public class BugInfoWrint{
	private static String  datetime=null;
	
	public static void Print(String info){
		if(Concest.ISDBUG){
			System.out.println("==========================Noka Tag Info ("+datetime+")==================================");
			System.out.println(info);
		}
	}
	public static void Print(Exception e){
		if(Concest.ISDBUG){
		System.out.println("=====================Noka Tag Info ("+datetime+")======================");
		e.printStackTrace();
		}
	}

	static{
		SimpleDateFormat bartDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		datetime = bartDateFormat.format(new Date());
	}
}
